added Feb 2001 SDK
[windows-sources.git] / shared source / sscli20 / tools / binplace / make.cmd
blob6cea971ff7668cd199a266d2eeed6c78fa01a80c
1 @if "%_echo%"=="" echo off
2 REM ==++==
3 REM
4 REM
5 REM Copyright (c) 2006 Microsoft Corporation. All rights reserved.
6 REM
7 REM The use and distribution terms for this software are contained in the file
8 REM named license.txt, which can be found in the root of this distribution.
9 REM By using this software in any fashion, you are agreeing to be bound by the
10 REM terms of this license.
11 REM
12 REM You must not remove this notice, or any other, from this software.
13 REM
14 REM
15 REM ==--==
16 if not exist obj%BUILD_ALT_DIR% goto NoObjDir
17 if "%1"=="clean" rmdir /s /q obj%BUILD_ALT_DIR%
18 if "%1"=="-c" rmdir /s /q obj%BUILD_ALT_DIR%
19 :NoObjDir
20 if not exist obj%BUILD_ALT_DIR% md obj%BUILD_ALT_DIR%
21 if not exist obj%BUILD_ALT_DIR%\rotor_x86 md obj%BUILD_ALT_DIR%\rotor_x86
22 type default.mac >obj%BUILD_ALT_DIR%\_objects.mac
24 nmake ROTOR_X86=1 -f makefile.win >build%BUILD_ALT_DIR%.log 2>&1
25 if ERRORLEVEL 1 goto :ReportError
27 :BuildSuccess
28 echo Build successful.
29 goto :EOF
31 :ReportError
32 if '%BUILDALL_BUILDING%'=='' (
33 echo.
34 for %%i in (build%BUILD_ALT_DIR%.log) do echo Build failed. Please see %%~fi for details.
36 exit /B 1